MDEV-37098 Fix Spider test failures in network-less environments
authorOtto Kekäläinen <otto@debian.org>
Fri, 12 Dec 2025 08:53:33 +0000 (08:53 +0000)
committerOtto Kekäläinen <otto@debian.org>
Tue, 13 Jan 2026 19:03:57 +0000 (19:03 +0000)
commit0505002a663d6157626219927f9e0b86b6e6a724
treeea2191bce36013cd6d953b10cb0d855708200544
parent22ceff32c8a798068766bc14afd75840578fce1a
MDEV-37098 Fix Spider test failures in network-less environments

When running tests in environments without a network interface (such as
containers with `--network=none`), Spider could not retrieve a hardware
address to generate a node ID. This triggered a warning in the server
log, causing MTR to fail the test due to unexpected output:

    [Warning] mariadbd: Can't get hardware address with error 2

Fix this by logging Spider hardware address errors to server log only.
This ensures the message is recorded in the server log for debugging but
does not pollute the client output.

It is questionable if this is a problem at all anyway, as when
`my_gethwaddr` fails, the code zeroes out the address buffer, resulting
in a `spider_unique_id` formatted like `-000000000000-PID-`, which is
valid.

Forwarded: https://github.com/MariaDB/server/pull/4479

Gbp-Pq: Name MDEV-37098-Spider-test-failures-in-network-less-environments.patch
storage/spider/spd_table.cc